home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 18 / CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso / CUCD / Online / CNetDemo / cnet / sdk / include / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-09-04  |  9.8 KB  |  451 lines

  1.  
  2. #ifndef CNET_CONFIG
  3. #define CNET_CONFIG
  4.  
  5. #define CONFIG_MAILTASK     "cnet:configs/Mail-Task.cfg\0"
  6. #define CONFIG_NEWSTASK     "cnet:configs/News-Task.cfg\0"
  7. #define CONFIG_FILETASK     "cnet:configs/File-Task.cfg\0"
  8. #define CONFIG_YANKTASK     "cnet:configs/Yank-Task.cfg\0"
  9. #define CONFIG_CRON            "cnet:configs/events.cfg\0"
  10. #define CONFIG_USEREDIT     "cnet:configs/usered.cfg\0"
  11. #define CONFIG_IMP            "cnet:configs/imp\0"
  12. #define CONFIG_SMTPHOSTS    "cnet:configs/smtpdhosts.cfg\0"
  13. #define CONFIG_SMTPSPAM     "cnet:configs/smtpspam.cfg\0"
  14. #define CONFIG_SMTPD         "cnet:configs/smtpd.cfg\0"
  15. #define CONFIG_MIME             "cnet:configs/mimewin.cfg\0"
  16. #define CONFIG_MIMETYPES     "cnet:configs/mime.cfg\0"
  17.  
  18. struct LogType
  19.     {
  20.     char  name  [10];
  21.     short id;
  22.  
  23.     char  custom[10];
  24.  
  25.     UBYTE flag;
  26.     UBYTE other;
  27.     };
  28.  
  29. struct   FidoType
  30.     {
  31.     char  Name[25];
  32.  
  33.     USHORT   ZoneB,  Zone,
  34.         NetB,   Net,
  35.         NodeB,  Node,
  36.         PointB, Point;
  37.  
  38.     USHORT   ZoneC, NetC, NodeC, PointC;
  39.  
  40.     char  EchoOrigin[78];
  41.     USHORT   LoZone;
  42.  
  43.     char  NetOrigin[76];
  44.     USHORT   Pointnet;
  45.     USHORT   HiZone;
  46.     };
  47.  
  48. struct   ProtoType
  49.     {
  50.     char  Name[16];
  51.     char  Env[36];
  52.     short Flags;
  53.     char  One[2];
  54.     char  Path[22];
  55.     };
  56.  
  57. struct   ArcType
  58.     {
  59.     char  Suffix[8];
  60.     char  Keyword[16];
  61.     char  View[64];
  62.     char  Test[64];
  63.     char  Pack[64];
  64.     char  Extract[64];
  65.  
  66.     long  Row;
  67.     long  Column;
  68.     };
  69.  
  70. // new for 4.12
  71. struct   NewArcType
  72.     {
  73.     char  Suffix[8];
  74.     char  Keyword[16];
  75.     char  View[64];
  76.     char  Test[64];
  77.     char  Pack[64];
  78.     char  Extract[64];
  79.  
  80.     long  Row;
  81.     long  Column;
  82.  
  83.     char  DizExtract[64];   /* CNet does a "CD <Config1.RAMpath>" before extracting */
  84.     char  DizAdd[64];       /* CNet does a "CD <Config1.RAMpath>" before adding */
  85.     };
  86.  
  87.  
  88. struct   EditorType
  89.     {
  90.     char  name[20];
  91.     char  path[32];
  92.     long  flags;
  93.     };
  94.  
  95. struct   Config1
  96.     {
  97.     char  MySystemName[26];
  98.     char  MySysopName[26];
  99.     char  MyLocation[26];
  100.     char  MyPhoneNumber[20];
  101.     char  MyBBSID[10];
  102.  
  103.     char  FontName[40];
  104.     long  DefBalance;
  105.     long  DefaultColor;
  106.     long  BlankTicks;
  107.     long  BlankBright;
  108.  
  109.     long  nUDBASEx;         // highest UDBASE partition
  110.     long  MaxShortLines;    // Short description lines - 16 MAX
  111.     long  MaxOpenPfiles;    // stuff from BBSCONFIG
  112.     long  maxUserAccounts;
  113.     long  NumRooms;
  114.     long  nLinkPorts;       // max link ID
  115.     long  nsub;
  116.     long  BListPurgeDays;
  117.     long  nselect;
  118.     long  nupload;
  119.     long  nlist;
  120.     long  maxYankTasks;
  121.     long  maxYankSize;
  122.     long  maxYankDays;
  123.     long  maxLogonAttempts;
  124.     long  maxLogonTime;
  125.     long  maxYanksPerUser;
  126.  
  127.     long  DefNetCredits;
  128.     long  DefByteCredits;
  129.     long  DefFileCredits;
  130.     char  MyCountry[4];
  131.     char  MyAreaCode[12];
  132.     char  DefDefProtocol[4];
  133.     char  Yprefix[4];       // Yank identifier
  134.     long  DefDoorPoints;
  135.     long  DefTimeForm;
  136.  
  137.     UBYTE MyLinkID;
  138.  
  139.     UBYTE LogonFeedback;
  140.     UBYTE LogonSearch;
  141.     UBYTE GuestUsers;
  142.     UBYTE HideStatus;
  143.     UBYTE ConfProfile;
  144.     UBYTE MailFeedback;
  145.     UBYTE SeparateTexts;
  146.     UBYTE IndentSpaces;
  147.     UBYTE CIDvalidate;
  148.     UBYTE CIDhandleskip;
  149.     UBYTE SkipIdlePorts;
  150.  
  151.     char  MyLinkPass[8];
  152.  
  153.     char  OLMpath[40],
  154.         ZIPpath[40],
  155.         EXTRACTpath[40],
  156.         YANKwork[40],
  157.         RAMpath[40],
  158.         TERMpath[40],
  159.         LocalEditor[40],
  160.         CDROMpath[40],
  161.         DictPath[40];
  162.  
  163.     char  FKey [10][80];
  164.     char  TFKey[10][80];
  165.  
  166.     USHORT   DColors2[2];
  167.     USHORT   DColors4[4];
  168.     USHORT   DColors8[8];
  169.     USHORT   DColors16[16];
  170.  
  171.     long  narc;
  172.     long  ned;
  173.     long  nproto;
  174.     long  nfido;
  175.     long  nlog;
  176.  
  177.     struct   ArcType     arc   [20];
  178.     struct   EditorType ed     [8];
  179.     struct   ProtoType  proto [16];
  180.     struct   FidoType   fido  [12];
  181.     struct   LogType     log   [88];
  182.  
  183.     char  MyUUCPName  [44];
  184.     char  OutboundPath[40];
  185.     char  InboundPath [40];
  186.  
  187.     ULONG TossInputSize;
  188.     ULONG TossOutputSize;
  189.     USHORT   DupeTableSize;
  190.  
  191.     UBYTE BadUnknown;
  192.     UBYTE Trapdoor174;
  193.     UBYTE BadDupes;
  194.     UBYTE ZoneGateAdjust;
  195.     UBYTE ShowKludges;
  196.     UBYTE ThreeD;
  197.     UBYTE DeleteUUCP;
  198.     UBYTE CIDsilence;
  199.     UBYTE TwoDotMsg;
  200.  
  201.     char  expansion;
  202.  
  203.     USHORT   RamUploadSize;
  204.  
  205.     char  RamUpload [30];
  206.     char  DiskUpload[40];
  207.  
  208.     char  Nodelist  [40];
  209.     };
  210.  
  211.  
  212. // used for CNet/4
  213. struct   NewConfig1
  214.     {
  215.     char  MySystemName[26];
  216.     char  MySysopName[26];
  217.     char  MyLocation[26];
  218.     char  MyPhoneNumber[20];
  219.     char  MyBBSID[10];
  220.  
  221.     char  FontName[40];
  222.     long  DefBalance;
  223.     long  DefaultColor;
  224.     long  BlankTicks;
  225.     long  BlankBright;
  226.  
  227.     long  nUDBASEx;         // highest UDBASE partition
  228.     long  MaxShortLines;    // Short description lines
  229.     long  MaxOpenPfiles;    // stuff from BBSCONFIG
  230.     long  maxUserAccounts;
  231.     long  NumRooms;
  232.     long  nLinkPorts;       // max link ID
  233.     long  nsub;
  234.     long  BListPurgeDays;
  235.     long  nselect;
  236.     long  nupload;
  237.     long  nlist;
  238.     long  maxYankTasks;
  239.     long  maxYankSize;
  240.     long  maxYankDays;
  241.     long  maxLogonAttempts;
  242.     long  maxLogonTime;
  243.     long  maxYanksPerUser;
  244.  
  245.     long  DefNetCredits;
  246.     long  DefByteCredits;
  247.     long  DefFileCredits;
  248.     char  MyCountry[4];
  249.     char  MyAreaCode[12];
  250.     char  DefDefProtocol[4];
  251.     char  Yprefix[4];       // Yank identifier
  252.     long  DefDoorPoints;
  253.     long  DefTimeForm;
  254.  
  255.     UBYTE MyLinkID;
  256.  
  257.     UBYTE LogonFeedback;
  258.     UBYTE LogonSearch;
  259.     UBYTE GuestUsers;
  260.     UBYTE HideStatus;
  261.     UBYTE ConfProfile;
  262.     UBYTE MailFeedback;
  263.     UBYTE SeparateTexts;
  264.     UBYTE IndentSpaces;
  265.     UBYTE CIDvalidate;
  266.     UBYTE CIDhandleskip;
  267.     UBYTE SkipIdlePorts;
  268.  
  269.     char  MyLinkPass[8];
  270.  
  271.     char  OLMpath[40],
  272.         ZIPpath[40],
  273.         EXTRACTpath[40],
  274.         YANKwork[40],
  275.         RAMpath[40],
  276.         TERMpath[40],
  277.         LocalEditor[40],
  278.         CDROMpath[40],
  279.         DictPath[40];
  280.  
  281.     char  FKey [10][80];
  282.     char  TFKey[10][80];
  283.  
  284.     USHORT   DColors2[2];
  285.     USHORT   DColors4[4];
  286.     USHORT   DColors8[8];
  287.     USHORT   DColors16[16];
  288.  
  289.     long  narc;
  290.     long  ned;
  291.     long  nproto;
  292.     long  nfido;
  293.     long  nlog;
  294.  
  295.     struct   NewArcType     arc   [20];
  296.     struct   EditorType ed     [8];
  297.     struct   ProtoType  proto [16];
  298.     struct   FidoType   fido  [12];
  299.     struct   LogType     log   [88];
  300.  
  301.     char  MyUUCPName  [44];
  302.     char  OutboundPath[40];
  303.     char  InboundPath [40];
  304.  
  305.     ULONG TossInputSize;
  306.     ULONG TossOutputSize;
  307.     USHORT   DupeTableSize;
  308.  
  309.     UBYTE BadUnknown;
  310.     UBYTE Trapdoor174;
  311.     UBYTE BadDupes;
  312.     UBYTE ZoneGateAdjust;
  313.     UBYTE ShowKludges;
  314.     UBYTE ThreeD;
  315.     UBYTE DeleteUUCP;
  316.     UBYTE CIDsilence;
  317.     UBYTE TwoDotMsg;
  318.  
  319.     UBYTE expansion;
  320.  
  321.     USHORT   RamUploadSize;
  322.  
  323.     char  RamUpload [30];
  324.     char  DiskUpload[40];
  325.  
  326.     char  Nodelist  [40];
  327.  
  328.     UBYTE MIDFromHandle;    // if TRUE, use user's Handle to create UUCP/Mail ID, else use Handle.
  329.  
  330.     UBYTE FileTaskNotify;   // 0=mail/OLM users only on file test/tx failure
  331.                                     // 1=mail/OLM users with ALL results
  332.  
  333.     BYTE DefMailSort;       // "System default" mail sorting method
  334.  
  335.     // 19-Feb-1997
  336.     UBYTE MonitorUUMail;    // True if mail-task should monitor and import msgs from IUUMAIL:
  337.     char UUMailPath[40];    // Path to where internet mail is placed (UUMAIL: is usual but configurable for future expansion etc,..)
  338.  
  339.     // 27-Feb-1997
  340.     UBYTE CreateWebDir;     // CNet will create the user Web dir "mail:users/<MailID>/WEB" if this is TRUE (1)
  341.                                     // This is for support of the new AWS cnetdir.library and will be used
  342.                                     // by CNet itself in the future..
  343.  
  344.     // 01-Mar-97
  345.     UBYTE NewsTaskPost;     // Enable news task posting.  If this is enabled (1)
  346.                                     // all CNet posts/replies in a "Usenet news" subboard
  347.                                     // are posted to the Internet service provider
  348.                                     // using news-task.  Otherwise, CNet will use
  349.                                     // "PostNews" or whatever program is specified on BBSTEXT
  350.                                     // line 2151
  351.  
  352.     // 03-Mar-97
  353.     char NewsServer[80];    // NewsServer to connect to for posting and retrieving news.
  354.     // 08-Mar 97
  355.     char NNTPPort;          // default=119
  356.  
  357.     UBYTE dynamicIP;        // if true, "NEWS" is placed in the path: line of outbound usenet messages processed by news-task.
  358.                                     // else configured INet Hostname is used in the path: line
  359.  
  360.  
  361.     char RootName[20];      // should match the username specified as "root" in Miami
  362.                                     // and/or AmiTCP
  363.  
  364.     short ABufferSize;      // Sysops can now set their ABuffer size - can be made as
  365.                                     // as the longest BBSTEXT line!  (See Config/Limits)
  366.  
  367.     char NewsPath[80];        // 23-Apr-97: Path to NEWS directory.
  368.     };
  369.  
  370.  
  371. struct ConfigExtension
  372.     {
  373.     char MailServer[80];    // 30-May-97 - SMTP mail host
  374.  
  375.     UBYTE SMTPMail;        // 01-Jun-97 - TRUE (1) if CNet should use internal
  376.                         //             SMTP routines to send outgoing mail to
  377.                         //             mail host myp->gc2.MailServer
  378.                         //
  379.                                 //             FALSE (0) if CNet should post using the
  380.                         //             "sendmail" command configured on BBSTEXT line
  381.                         //             2133.
  382.  
  383.     ULONG    mailtimeout;    // mail-task timeout to check for spooled mail send
  384.                                 // in seconds
  385.  
  386.     ULONG MailTaskBufMax;        // number of LINES to trim mail-task buffer to (0=no trim)
  387.     ULONG NewsTaskBufMax;        // number of LINES to trim news-task buffer to (0=no trim)
  388.     ULONG FileTaskBufMax;        // number of LINES to trim file-task buffer to (0=no trim)
  389.     ULONG YankTaskBufMax;        // number of LINES to trim yank-task buffer to (0=no trim)
  390.     ULONG SMTPBufMax;                // number of LINES to trim SMTPd buffer to (0=no trim)
  391.     char    TimeZone[4];            // 3 characters representing the local timezone (eg. EST, CST, etc.)
  392.     };
  393.  
  394.  
  395. // this is the structure used (saved to disk also) for *-task configs
  396. struct ServTaskConfig
  397.     {
  398.     char Version[30];
  399.     char FontName[128];
  400.     short FontSize;
  401.     short WinTop;
  402.     short WinLeft;
  403.     short WinHeight;
  404.     short WinWidth;
  405.  
  406.     // 24-Jan-97
  407.     BYTE Iconify;     // 1 == iconified
  408.     BYTE Menufy;      // 1 == menufied
  409.     };
  410.  
  411.  
  412. // added 11-Jan-97
  413. // CNetGui.library's GetScreenInfo() fills this structure.
  414. // The Screen must first be locked before calling GetScreenInfo()
  415. struct CNetScreenInfo
  416.     {
  417.     char PubName[40];          // public screen name
  418.     WORD LeftEdge;             // Display clip dimensions.  NOT the full screen size,
  419.     WORD TopEdge;
  420.     WORD Width;
  421.     WORD Height;
  422.     struct ColorMap *colormap; // screen's colormap
  423.     struct TextAttr Font;      // font used for Title/drag-bar rendering
  424.     };
  425.  
  426. #endif
  427.  
  428.  
  429. struct OtherStuff
  430.     {
  431.     LONG    lvtop;
  432.     short    ileft;
  433.     short    itop;
  434.  
  435.     struct IBox ibox; // window sizes
  436.  
  437.     // struct IBox
  438.     // {
  439.     //     WORD Left;
  440.     //     WORD Top;
  441.     //     WORD Width;
  442.     //     WORD Height;
  443.     // };
  444.  
  445.     long    click;
  446.  
  447.     USHORT    wzoom[4];
  448.  
  449.     char    expansion[64];
  450. };
  451.